class Solution(object):
    def canMakeArithmeticProgression(self, arr):
        arr.sort()
        n = len(arr)
        for i in range(1, n - 1):
            if 2 * arr[i] != arr[i - 1] + arr[i + 1]:
                return False
        return True